/*
 * @Author: byron
 * @Date: 2021-10-28 12:52:05
 * @LastEditTime: 2022-02-16 21:56:04
 */
import {
    request
} from '../http'


// 最热标签
export const hotTags = () => request.get(`/tags/hot`)
// 全部标签
export const getTags = (params) => request.get('/tags', {
    params
})
// 删除标签
export const delTag = (id) => request.delete(`/tags/delete/${id}`)
// 增加标签
export const addTag = (data) => request.post(`/tags/addTag`, data)
// 编辑标签
export const editTag = (data) => request.put(`/tags/editTag`, data)
// 更新标签状态
export const updateStatus = (data) => request.put(`/tags/updateStatus`, data)